package demo3;

class OuterClass{
    public int  data1=1;
    public void testA(){
        //局部内部类 定义在方法里面  只能在当前方法中使用
        class InnerClass {
            public int data1=100;
            public static int data2=2;
            public void test(){
                System.out.println("InnerClass::test");
            }
        }
        InnerClass innerClass=new InnerClass();
        innerClass.test();

    }
}

public class Test3 {
}
